﻿using Microsoft.AspNetCore.Http;
using System;

namespace Camc.Quality.Bom.Dto
{
   public class BomImprotDto
    {
        /// <summary>
        /// 物料型号
        /// </summary>
        public string MaterialModuleParent { get; set; }
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNoParent { get; set; }
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit{get; set; }
        /// <summary>
        /// 物料属性
        /// </summary>
        public string MaterialProperty { get; set; }
        /// <summary>
        /// 物料类别名称
        /// </summary>
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 细分类别名称
        /// </summary>
        public string MaterialSegmentationName { get; set; }
        /// <summary>
        /// 是否标准件
        /// </summary>
        public string IsStandard { get; set; }
        /// <summary>
        /// 是否关键件
        /// </summary>
        public string IsKeyPart { get; set; }
        /// <summary>
        ///单位1BOM用量
        /// </summary>
        public int Unit1BomDosage { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// Excel验证是否通过，默认为true
        /// <para>true：通过；false：不通过</para>
        /// </summary>
        public bool IsExcelVaildateOK { get; set; } = true;

        /// <summary>
        /// 父级ID
        /// </summary>
        public Guid BomParentId { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public Guid BomDesignId { get; set; }

    }
    public class ImprotParameter {
        public IFormFile file { get; set; }
        public Guid parentId { get; set; }
        
    }
}
